﻿@model SnippetBox.Web.Areas.Manage.Models.UserModel

@{
    ViewBag.Title = "Edit User";
}


<h1>Users</h1>

@Html.Partial("_UserMenu")

<script src="@Url.Content("~/assets/scripts/lib/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/assets/scripts/lib/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    @Html.HiddenFor(m => m.User.UserId)

    @Html.EditorForModel()

    <p class="buttonRow">
        @Html.ActionLink("cancel", "Index", null, new { @class = "cancelLink" })
        <input type="submit" value="Save" />
    </p>
}

